﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200122D RID: 4653
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartRogueScRsp : IMessage<StartRogueScRsp>, IMessage, IEquatable<StartRogueScRsp>, IDeepCloneable<StartRogueScRsp>, IBufferMessage
	{
		// Token: 0x17003B01 RID: 15105
		// (get) Token: 0x0600D0AD RID: 53421 RVA: 0x0023255B File Offset: 0x0023075B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartRogueScRsp> Parser
		{
			get
			{
				return StartRogueScRsp._parser;
			}
		}

		// Token: 0x17003B02 RID: 15106
		// (get) Token: 0x0600D0AE RID: 53422 RVA: 0x00232562 File Offset: 0x00230762
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartRogueScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B03 RID: 15107
		// (get) Token: 0x0600D0AF RID: 53423 RVA: 0x00232574 File Offset: 0x00230774
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartRogueScRsp.Descriptor;
			}
		}

		// Token: 0x0600D0B0 RID: 53424 RVA: 0x0023257B File Offset: 0x0023077B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRogueScRsp()
		{
		}

		// Token: 0x0600D0B1 RID: 53425 RVA: 0x00232584 File Offset: 0x00230784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRogueScRsp(StartRogueScRsp other) : this()
		{
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.rotateInfo_ = ((other.rotateInfo_ != null) ? other.rotateInfo_.Clone() : null);
			this.rogueGameInfo_ = ((other.rogueGameInfo_ != null) ? other.rogueGameInfo_.Clone() : null);
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D0B2 RID: 53426 RVA: 0x00232624 File Offset: 0x00230824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartRogueScRsp Clone()
		{
			return new StartRogueScRsp(this);
		}

		// Token: 0x17003B04 RID: 15108
		// (get) Token: 0x0600D0B3 RID: 53427 RVA: 0x0023262C File Offset: 0x0023082C
		// (set) Token: 0x0600D0B4 RID: 53428 RVA: 0x00232634 File Offset: 0x00230834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x17003B05 RID: 15109
		// (get) Token: 0x0600D0B5 RID: 53429 RVA: 0x0023263D File Offset: 0x0023083D
		// (set) Token: 0x0600D0B6 RID: 53430 RVA: 0x00232645 File Offset: 0x00230845
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo RotateInfo
		{
			get
			{
				return this.rotateInfo_;
			}
			set
			{
				this.rotateInfo_ = value;
			}
		}

		// Token: 0x17003B06 RID: 15110
		// (get) Token: 0x0600D0B7 RID: 53431 RVA: 0x0023264E File Offset: 0x0023084E
		// (set) Token: 0x0600D0B8 RID: 53432 RVA: 0x00232656 File Offset: 0x00230856
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueInfo RogueGameInfo
		{
			get
			{
				return this.rogueGameInfo_;
			}
			set
			{
				this.rogueGameInfo_ = value;
			}
		}

		// Token: 0x17003B07 RID: 15111
		// (get) Token: 0x0600D0B9 RID: 53433 RVA: 0x0023265F File Offset: 0x0023085F
		// (set) Token: 0x0600D0BA RID: 53434 RVA: 0x00232667 File Offset: 0x00230867
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17003B08 RID: 15112
		// (get) Token: 0x0600D0BB RID: 53435 RVA: 0x00232670 File Offset: 0x00230870
		// (set) Token: 0x0600D0BC RID: 53436 RVA: 0x00232678 File Offset: 0x00230878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D0BD RID: 53437 RVA: 0x00232681 File Offset: 0x00230881
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartRogueScRsp);
		}

		// Token: 0x0600D0BE RID: 53438 RVA: 0x00232690 File Offset: 0x00230890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartRogueScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Lineup, other.Lineup) && object.Equals(this.RotateInfo, other.RotateInfo) && object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this.Scene, other.Scene) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D0BF RID: 53439 RVA: 0x00232720 File Offset: 0x00230920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this.rotateInfo_ != null)
			{
				num ^= this.RotateInfo.GetHashCode();
			}
			if (this.rogueGameInfo_ != null)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D0C0 RID: 53440 RVA: 0x002327B7 File Offset: 0x002309B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D0C1 RID: 53441 RVA: 0x002327BF File Offset: 0x002309BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D0C2 RID: 53442 RVA: 0x002327C8 File Offset: 0x002309C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.scene_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Scene);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Lineup);
			}
			if (this.rotateInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RotateInfo);
			}
			if (this.rogueGameInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D0C3 RID: 53443 RVA: 0x00232878 File Offset: 0x00230A78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this.rotateInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RotateInfo);
			}
			if (this.rogueGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D0C4 RID: 53444 RVA: 0x00232918 File Offset: 0x00230B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartRogueScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			if (other.rotateInfo_ != null)
			{
				if (this.rotateInfo_ == null)
				{
					this.RotateInfo = new RogueMapRotateInfo();
				}
				this.RotateInfo.MergeFrom(other.RotateInfo);
			}
			if (other.rogueGameInfo_ != null)
			{
				if (this.rogueGameInfo_ == null)
				{
					this.RogueGameInfo = new RogueInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D0C5 RID: 53445 RVA: 0x00232A04 File Offset: 0x00230C04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D0C6 RID: 53446 RVA: 0x00232A10 File Offset: 0x00230C10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
				}
				else
				{
					if (num == 42U)
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
						continue;
					}
					if (num == 82U)
					{
						if (this.rotateInfo_ == null)
						{
							this.RotateInfo = new RogueMapRotateInfo();
						}
						input.ReadMessage(this.RotateInfo);
						continue;
					}
					if (num == 106U)
					{
						if (this.rogueGameInfo_ == null)
						{
							this.RogueGameInfo = new RogueInfo();
						}
						input.ReadMessage(this.RogueGameInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040053AD RID: 21421
		private static readonly MessageParser<StartRogueScRsp> _parser = new MessageParser<StartRogueScRsp>(() => new StartRogueScRsp());

		// Token: 0x040053AE RID: 21422
		private UnknownFieldSet _unknownFields;

		// Token: 0x040053AF RID: 21423
		public const int LineupFieldNumber = 5;

		// Token: 0x040053B0 RID: 21424
		private LineupInfo lineup_;

		// Token: 0x040053B1 RID: 21425
		public const int RotateInfoFieldNumber = 10;

		// Token: 0x040053B2 RID: 21426
		private RogueMapRotateInfo rotateInfo_;

		// Token: 0x040053B3 RID: 21427
		public const int RogueGameInfoFieldNumber = 13;

		// Token: 0x040053B4 RID: 21428
		private RogueInfo rogueGameInfo_;

		// Token: 0x040053B5 RID: 21429
		public const int SceneFieldNumber = 4;

		// Token: 0x040053B6 RID: 21430
		private SceneInfo scene_;

		// Token: 0x040053B7 RID: 21431
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040053B8 RID: 21432
		private uint retcode_;
	}
}
